module.exports = (sequelize, Sequelize) => {
	const recAddress = sequelize.define(
		'recaddress_info',
		{
			id: { type: Sequelize.INTEGER(10), autoIncrement: true },
			name: { type: Sequelize.STRING(25), primaryKey: true },
			region: { type: Sequelize.STRING(25), primaryKey: true },
			address: { type: Sequelize.STRING(50), primaryKey: true },
			phone: { type: Sequelize.STRING(11), allowNull: false },
			email: { type: Sequelize.STRING(255) },
			userId: { type: Sequelize.STRING(20), allowNull: false },
			category: { type: Sequelize.STRING(50) },
		},
		{
			timestamps: false,
			freezeTableName: true,
		}
	)
	return recAddress
}
